package com.ruoyi.bearing.controller;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.bearing.domain.ComponentLabel;
import com.ruoyi.bearing.service.IComponentLabelService;

@RestController
@RequestMapping("/bearing/component_labels")
public class ComponentLabelController extends BaseController {
    @Autowired
    private IComponentLabelService componentLabelService;

    @GetMapping("/list")
    public AjaxResult list() {
        List<ComponentLabel> list = componentLabelService.selectComponentLabelList();
        return AjaxResult.success(list);
    }
}

